﻿<%@ Page Language="C#" MasterPageFile="Site.master" AutoEventWireup="true" CodeBehind="self.aspx.cs" Inherits="GeniusWebApplication.self" %>

<asp:Content ID="_css_place" ContentPlaceHolderID="css_place" runat="server">
    <link href="./css/self.css" rel="stylesheet" type="text/css">
	<link href="./css/common.css" rel="stylesheet" type="text/css">
    <link href="./css/frame_main.css" rel="stylesheet" type="text/css">
    <link href="./css/dialog_box.css" rel="stylesheet" type="text/css">
</asp:Content>

<asp:Content ID="_left_bar" ContentPlaceHolderID="left_bar" runat="server">
    <div class="frame-side" id="js_page_side">
            
            <!--网盘分类目录-->
            <div class="directory-menu">
                <div class="dir-menu-side">
                    <ul>
                        
                        <li tab="u" class=""><a href="./self.aspx"><i class="ico-dm dm-cloud"></i><span>空间</span></a></li>
                        <li tab="note"><a href="./redify.aspx"><i class="ico-dm dm-notebook"></i><span>修改</span></a></li>
                        <li tab="msg"><a href="./message.aspx"><i class="ico-dm dm-message"></i><span>消息</span><em id="js_msg_recv_count" style="display: none; "></em></a></li>
                    </ul>
                </div>
            </div>
        </div>
</asp:Content>

<asp:Content ID="_library" ContentPlaceHolderID="library" runat="server" >
    <div id="lib_serve" runat = "server">

    </div>
    <script>
        function overZui(l) {
            var a = document.getElementById("zuixinSelected");
            var length_l = getElementLeft(l) - 29;
            a.style.left = length_l + "px";
        }
        function clickNav(l) {
            var a = document.getElementById("zuixinSelected0");
            var length_l = getElementLeft(l) - 29;
            a.style.left = length_l + "px";
        }
	</script>
</asp:Content>

<asp:Content ID="_you_shang_jiao" ContentPlaceHolderID="you_shang_jiao" runat="server" >
	<span class="headerItem" id="message_notice">消息</span>
	<span>&nbsp;&nbsp;&nbsp;|</span>
	<span class="headerItem" id="concern_notice">关注</span>
	<span>&nbsp;&nbsp;&nbsp;|</span>
	<span class="headerItem"><a href="./log.aspx">退出</a></span>
</asp:Content>

<asp:Content ID="_float_left" ContentPlaceHolderID="float_left" runat="server" >
    <section id="myList">
		<ul id="myListUl" runat="server">
			
		</ul>
	</section>	
</asp:Content>

<asp:Content ID="_float_right" ContentPlaceHolderID="float_right" runat="server" >
    <div id="order" runat = "server">
		
	</div>
    <div id="relation_who" runat = "server">
        
    </div>

    <div id="relation_who1" runat = "server">
        
    </div>

<script>
    function clickConcern() {
        var a = $("#btn_concern");
        var name = "<%=myEmail %>";
        var toname = "<%=hisEmail %>";
        $.ajax({
            type: "POST",
            url: "self.aspx/ajaxAddRelationFunc",
            data: "{who:'" + name + "',follow:'" + toname + "'}",
            contentType: "application/json; charset=utf-8",
            success: function (data) {
                //var dataObj = eval("(" + data + ")");
                //alert(dataObj.d);
                //var info = eval("(" + dataObj.d + ")");
                var info = eval("(" + data.d + ")");
                var suc = info.result;
                if (suc == 1) {
                    alert("关注成功！");
                    window.location.reload();
                } else if (suc == 2) {
                    alert("您已关注过此会员!");
                } else if (suc == 3) {
                    alert("您不能关注自己!");
                } else {
                    alert("关注失败!");
                }
            }
        });
    }
</script>
<script>
    function clickConcern_cancel() {
        var a = $("#btn_concern_cancel");
        var name = "<%=myEmail %>";
        var toname = "<%=hisEmail %>";
        $.ajax({
            type: "POST",
            url: "self.aspx/ajaxDelRelationFunc",
            data: "{who:'" + name + "',follow:'" + toname + "'}",
            contentType: "application/json; charset=utf-8",
            success: function (data) {
                //var dataObj = eval("(" + data + ")");
                //alert(dataObj.d);
                //var info = eval("(" + dataObj.d + ")");
                var info = eval("(" + data.d + ")");
                var suc = info.result;
                if (suc == 1) {
                    alert("取消成功！");
                    window.location.reload();
                } else if (suc == 2) {
                    alert("您未关注过此会员!");
                } else {
                    alert("取消失败!");
                }
            }
        });
    }
</script>
</asp:Content>

<asp:Content ID="_scripts" ContentPlaceHolderID="scripts" runat="server" >

</asp:Content>
